﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Che.AppService.Dto
{
    [Keyless]
    public class EventDetail
    {
        [Column("EventsId")]
        public int? EventId { get; set; }

        [Column("matchTime")]
        public DateTime? MatchTime { get; set; }

        // 主队信息组
        [Column("HometeamId")]
        public int? HomeTeamId { get; set; }

        [Column("HomeTeamName")]
        public string HomeTeamName { get; set; }

        [Column("HomeTeamFounded")]
        public DateTime? HomeTeamFounded { get; set; }

        [Column("HomeTeamTrophies")]
        public int? HomeTeamTrophies { get; set; }

        [Column("HomeTeamLogo")]
        public string HomeTeamLogoUrl { get; set; }

        [Column("HomeLeagueId")]
        public int? HomeLeagueId { get; set; }

        [Column("HomeContinentalId")]
        public int? HomeContinentalId { get; set; }

        // 客队信息组
        [Column("VisitorsId")]
        public int? VisitorTeamId { get; set; }

        [Column("VisitorTeamName")]
        public string VisitorTeamName { get; set; }

        [Column("VisitorTeamFounded")]
        public DateTime? VisitorTeamFounded { get; set; }

        [Column("VisitorTeamTrophies")]
        public int? VisitorTeamTrophies { get; set; }

        [Column("VisitorTeamLogo")]
        public string VisitorTeamLogoUrl { get; set; }

        [Column("VisitorLeagueId")]
        public int? VisitorLeagueId { get; set; }

        [Column("VisitorContinentalId")]
        public int? VisitorContinentalId { get; set; }

        // 球场信息组
        [Column("StadiumId")]
        public int? StadiumId { get; set; }

        [Column("StadiumName")]
        public string StadiumName { get; set; }

        [Column("StadiumFounded")]
        public DateTime? StadiumFounded { get; set; }

        // 赛事类型信息组
        [Column("EventsTypeId")]
        public int? EventTypeId { get; set; }

        [Column("typeis")]
        public int? EventCategory { get; set; } // 1-联赛 2-洲际赛

        [Column("EventsTypeName")]
        public string EventTypeName { get; set; }

        [Column("EventRegion")]
        public string Region { get; set; }

        [Column("EventTypeEstablished")]
        public DateTime? EventTypeEstablished { get; set; }
    }
}
